<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>34-2D转换transform-translate移动</title>
    <style>
        .box {
            width: 100px;
            height: 100px;
            background-color: pink;
            transform: translate(100px, 200px) rotate(45deg);
        }
        
        .box2 {
            width: 100px;
            height: 100px;
            background-color: rgb(201, 37, 65);
        }
    </style>
</head>

<body>
    <div class="box"></div>
    <div class="box2"></div>
</body>

</html>